package cn.dto;

public class PageInfo {
	//是否有上一页
	private boolean hasPre;
	//是否有下一页
	private boolean hasNext;
	//总页数
	private int pageCount;
	//本页数据
	private Object pageData;
	//当前页
	private int currenPage;
	//每页显示多少条
	private int pageSize;
	public boolean isHasPre() {
		return hasPre;
	}
	public void setHasPre(boolean hasPre) {
		this.hasPre = hasPre;
	}
	public boolean isHasNext() {
		return hasNext;
	}
	public void setHasNext(boolean hasNext) {
		this.hasNext = hasNext;
	}
	public int getPageCount() {
		return pageCount;
	}
	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}
	public Object getPageData() {
		return pageData;
	}
	public void setPageData(Object pageData) {
		this.pageData = pageData;
	}
	public int getCurrenPage() {
		return currenPage;
	}
	public void setCurrenPage(int currenPage) {
		this.currenPage = currenPage;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	@Override
	public String toString() {
		return "PageInfo [hasPre=" + hasPre + ", hasNext=" + hasNext + ", pageCount=" + pageCount + ", pageData="
				+ pageData + ", currenPage=" + currenPage + ", pageSize=" + pageSize + "]";
	}
	
	
}
